#include <iostream>
#define SIZE 100
using namespace std;

double numbers[SIZE];
int i, n;

void read();

int main()
{
	double maximum;
	read();
	
	maximum = numbers[0];
	
	for (i = 1; i < n; ++i)
		if (numbers[i] > maximum)
			maximum = numbers[i];
	
	for (i = 0; i < n; ++i)
		if (numbers[i] == maximum)
			cout << i << " ";
	return 0;
}

void read()
{
	cout << "n = ";
	cin >> n;
	for (i = 0; i < n; ++i)
	{	cout << "numbers[" << i << "]= ";
		cin >> numbers[i];
	}
}